package pluginUtils;

public class MobiusReflection extends MobiusTransform {
	private Circle ci;
	private Complexe center; 
	private double radius; 

	public MobiusReflection(Circle ci) {
		super(); 
		this.ci = ci;
		this.center=ci.getCenter();
		this.radius=ci.getRadius(); 
		double x=ci.getCenter().getReal(); 
		double y=ci.getCenter().getIm(); 
		double r=ci.getRadius(); 
		Complexe za=Complexe.mulbyDouble(ci.getCenter(),1/this.radius);
		double br=r-(x*x+y*y)/r; 
		Complexe zb=Complexe.createComplexeFromRI(br,0); 
		Complexe zc=Complexe.createComplexeFromRI(1/r,0);
		Complexe zd=Complexe.createComplexeFromRI(-x/r,y/r); 
		this.a=za; 
		this.b=zb; 
		this.c=zc; 
		this.d=zd; 
		this.computeFixPoints(); 
	}
	

}
